

class BuffHandler:
    
    handlers = {}
    
    @staticmethod
    def register(buff):
        BuffHandler.handlers[buff.name] = buff
        
    @staticmethod
    def get(self, name):
        return BuffHandler.handlers[name]()